@import '../../../src/res/theme/xxhz.scss';



.custom_main {
  background: #fff;
}

.customRoot {
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;

  .right-more, .more {
    font-size: 26px;
    color: #666;
    font-weight: bold;
  }

  .customZoom {

    .custom_main {
      background-color: inherit;
    }

    .categorys {
      margin: 0 30px !important;
    }

    .shangxin-today-block-item-bottom-box {
      position: relative;
      top: -2.5Px;
      display: inline-block;
      transform: scale(0.8);
    }

    .title-box, .head_title {
      padding-left: 20px !important;
      padding-right: 20px !important;
    }

    .good-item-box, .big-right {

      .labels {
        transform: scale(0.85) translate(-12PX, 0);
      }
    }


    .left, .right {
      .good-item-box:last-child {
        margin-bottom: 0 !important;
      }
    }

    .bigGoodsBox {
      padding-top: 0 !important;

      .good-item:first-child {
        padding-top: 0 !important;
      }
    }

    .bigGoodsBox .good-item:last-child {
      padding-bottom: 0 !important;
    }

    .module-item {
      background-color: #fff;
      margin: 0 30px;

      .advert-img {
        border-radius: 10px;
      }

      .index-sale-common-discount {
        margin-right: -2Px;
      }

      .shangxin-discount {
        transform: scale(0.8) translate(-8PX, 0);
        margin-right: -7Px !important;
      }

      .m-r-10 {
        margin-right: 0 !important;
      }

      .price-box .number, .price .main, .component_float {
        font-size: 34px !important;
        font-weight: bold;
      }

      .swiper-recommend-discount {
        transform: scale(0.8) translate(-4PX, 0);
        top: 3Px !important;
        margin-right: -3Px;
      }

      .small-goods-box-discount {
        position: relative;
        top: 2.8Px;
        transform: scale(0.8) translate(-5PX, 0);
        margin-right: -7Px;
      }
    }

    .common-module, .module-item {
      border-radius: 10px;
    }

    .module-item-m-t {
      margin-top: 20px;
    }

    .no-bg {
      background-color: inherit !important;
    }

    .hot {
      width: initial !important;
      margin: 0 30px;
    }

    .first-hot {
      border-top-right-radius: 10px;
      border-top-left-radius: 10px;
    }

    .last-hot {
      border-bottom-left-radius: 10px;
      border-bottom-right-radius: 10px;
    }
  }

  .share-settings-components-logo {
    position: fixed;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom) + 165px);
    width: 48Px;
    height: 48Px;
    z-index: 99;
    cursor: pointer;
  }

  .share-settings-components-logo-big-bottom {
    bottom: calc(env(safe-area-inset-bottom) + 260px) !important;
  }

  .share-settings-components-logo-img {
    width: 48Px;
    height: 48Px;
  }

  /* #ifdef tt */
  .search-bar{
    left: 2% !important;
    transform: inherit !important;
    width: 96% !important;
    max-width: inherit !important;
  }
  /* #endif */

  .head {
    width: 100%;
    position: fixed;
    z-index: 999;

    .search-bar {
      left: 50%;
      transform: translateX(-50%);
      position: absolute;
      width: 100%;
    }
  }

  .header-bar {
    position: fixed;
    z-index: 1000;
  }

  .top-img {
    margin-bottom: -4Px;
    width: 100%;
  }

  .zoom {
    position: relative;
    z-index: 2;
  }

  .head-bg {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all 0.4s ease 0s;
  }

  .categorys-topic {
    margin: 0 20px;
  }

  .categorys {
    padding: 20px;
    border-radius: 10px;
    background: #fff;
  }

  .hot {
    background-color: #f8f8f8;
    box-sizing: border-box;
    padding: 20px 20px 40px;

    .title {
      font-size: 32px;
      color: #333;
      padding: 20px 0;
    }

    .content-box {
      width: calc(100% - 40px);
      display: grid;
      grid-template-columns: repeat(3, 33.33333%);
      grid-gap: 10px 20px;

      .item {
        width: 100%;

        .img {
          width: 100%;
          height: 168px;
          display: block;
          border-radius: 10px;
        }

        .name {
          color: #a4a4a4;
          font-size: 22px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          line-height: 50px;
          text-align: center;
        }
      }
    }
  }

  .bottom-nav {
    display: flex;
    box-sizing: border-box;
    padding: 20px;
    background-color: white;
    position: sticky;
    z-index: 99;
    align-items: center;

    .main {
      width: 140px;
      flex-shrink: 0;
      font-size: 32px;
      color: #454545;
      font-weight: bold;
    }

    .subNav {
      flex-grow: 1;

      .nav-box {
        display: flex;
        width: 100%;
        font-size: 24px;
        color: #3b3b3b;

        .nav-item {
          padding: 8px 20px 0;
          flex-shrink: 0;
        }

        .active {
          color: $mainColor;
        }
      }
    }
  }

  .bottom-goods {
    background-color: white;
  }

  .head_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 30px;

    .title {
      font-weight: bold;
      font-size: 32px;
    }
  }
}

